import yaml


# s = {"data": {"test01": {"key": [1, 2, 3], "value": 6},
#               "test02": {"key2": [4, 5, 6], "value1": 7}
#               }
#      }
with open("./hello1.yaml", "r") as f:
    data = yaml.load(f)["data"]["test01"]["key"]
    print(data)

    # yaml.dump(s, f)
